﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DeviceEntity.Device.Motor.Type
{
    /// <summary>
    /// 雷赛智能步进电机
    /// </summary>
    class LeadshineBLL:BLL.IMotorBLL
    {
        /// <summary>
        /// 操作类
        /// </summary>
        private static LeadshineBLL leadshineBLL = null;
        /// <summary>
        /// 配置参数
        /// </summary>
        private static DeviceEntity.Model.DeviceConfigModel _deviceConfig = null;
        /// <summary>
        /// 初始化
        /// </summary>
        /// <param name="deviceConfig">配置参数</param>
        /// <returns></returns>
        public static BLL.IMotorBLL Init(DeviceEntity.Model.DeviceConfigModel deviceConfig)
        {
            if (leadshineBLL == null)
            {
                leadshineBLL = new LeadshineBLL();
            }
            _deviceConfig = deviceConfig;
            return leadshineBLL;
        }
    }
}
